package br.com.xti.estudo.heranca;

public class InterfaceTest {

	public static void area (AreaCalculavel o){
		System.out.println(o.areaCalculavel());
	}
	
	public static void volume (VolumeCalculado o){
		System.out.println(o.calculaVolume());
	}
	
	public static void main(String[] args) {
		
		area( new Quadrado(2));
		
		volume(new Cubo(2));
		
		
		

	}

}
